package com.jy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 车位管理表
 * </p>
 *
 * @author xiexingxin
 * @since 2022-11-15
 */
@Data
@TableName("t_carport")
public class Carport implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 车位ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 车位名
     */
    @TableField("carportName")
    private String carportName;

    /**
     * 与t_area表主键关联，区域Id
     */
    private Integer aid;

    /**
     * 与t_areatype表主键关联，车位类型
     */
    private Integer tid;

    /**
     * "与t_proprietor表主键关联，业主信息
     */
    private Integer pid;

    /**
     * 与t_area表主键关联，区域Id
     */
    private Integer statu;
    
    @TableField(exist = false)
    private List<Carport> carports;
    
    @TableField(exist = false)
    private List<Type> types;


}
